﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="fastFact_Add.aspx.cs" Inherits="NCC_SOP.Admin.fastFact_Add" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>


<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {
            height: 25px;
        }
        .style2
        {
            height: 25px;
        }
    </style>
</asp:Content>



<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <div style="float:left; width:100%; height: 40px;">
        <asp:label ID="Label1" Font-Size="Large" runat="server">Add New Can Stat Report</asp:label>
        <asp:label ID="errorMsg" Font-Size="Medium" ForeColor="Red" Visible="false" runat="server"></asp:label>
    </div>

    <div style="float:left; width:100%; height: 123px;">
        <table style="width: 100%; height: 135px;">
        <tr>
            <td class="style2" style="font-weight: bold; color: #000000">
                &nbsp;
                Report Name:</td>
            <td class="style2">
                &nbsp;
                <asp:TextBox ID="rptName" runat="server"></asp:TextBox>
            </td>
            <td class="style2">
                &nbsp;
            </td>
            <td class="style2" style="font-weight: bold; color: #000000">
                &nbsp;
                Cancer Site:</td>
            <td class="style2">
                &nbsp;
                <asp:DropDownList ID="DS" runat="server" Height="16px">
                    <asp:ListItem value="Breast" selected="true">Breast</asp:ListItem>
                    <asp:ListItem value="Lung" selected="false">Lung</asp:ListItem>
                    <asp:ListItem value="Gynae" selected="false">Gynae</asp:ListItem>
                    <asp:ListItem value="Gastric" selected="false">Gastric</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style1" style="font-weight: bold; color: #000000">
                &nbsp;
                Stats Type:</td>
            <td class="style1">
                &nbsp;
                <asp:DropDownList ID="rptType" runat="server">
                    <asp:ListItem value="Aggregate" selected="true">Aggregate Data</asp:ListItem>
                    <asp:ListItem value="Survival" selected="false">Survival Data</asp:ListItem>
                    <asp:ListItem value="PatCnt" selected="false">Patient Count</asp:ListItem>
                    <asp:ListItem value="audit" selected="false">Clinical Audit</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style1" style="font-weight: bold; color: #000000">
                &nbsp;
                Report Status:</td>
            <td class="style1">
                &nbsp;
                <asp:RadioButtonList id="rpt_status" runat="server" repeatdirection="Horizontal">
                    <asp:ListItem ID="active" runat="server" Text="Active"/>
                    <asp:ListItem ID="inactive" runat="server" Text="Inactive" />
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="style1" style="font-weight: bold; color: #000000">
                &nbsp; Is .Rpt File:</td>
            <td class="style1">
                &nbsp;
                <asp:RadioButtonList id="isRpt" runat="server" 
                    repeatdirection="Horizontal">
                    <asp:ListItem ID="yes" runat="server" Text="Yes" Value="1"/>
                    <asp:ListItem ID="no" runat="server" Text="No" Value="0" Selected/>
                </asp:RadioButtonList>
            </td>
            <td class="style1">
                &nbsp;
            </td>
            <td class="style1" style="font-weight: bold; color: #000000">
                &nbsp;
                URL:</td>
            <td class="style1">
                &nbsp;
                <asp:TextBox ID="rptURL" runat="server"></asp:TextBox>
            </td>
        </tr>
        
    </table>
    </div>
   

   <div style="float:left; width:100%; padding-top:20px;">
       <p style="font-weight: bold; font-style: italic; color: #000000; font-size: large">Report Summary:</p>
       <asp:TextBox ID="rptDescription" runat="server" TextMode="MultiLine" Columns=20 
           Rows=20 Height="165px" Width="562px"></asp:TextBox>
   </div>

    <div style="float: left; width: 100%; padding-top: 20px;">
        
        <div style="float: left; width: 100%;">
            <asp:Label ID="uploadError" ForeColor="Red" Visible="false" runat="server" />
        </div>
        <div style="float: left; width: 100%;">
            <telerik:RadUpload ID="rptLinks" runat="server" MaxFileInputsCount="1" AllowedFileExtensions=".pdf">
            </telerik:RadUpload>
        </div>
        <div style="float: left; width: 100%; padding-top: 10px;">
            <asp:Button ID="buttonSubmit" runat="server" CssClass="RadUploadSubmit" OnClick="uploadFile_Click"
                Text="Upload" />
        </div>
        
        <div class="title" style="float: left; width: 100%; padding-top=10px; color: green">
            Uploaded valid files (*.pdf):
        </div>
        <div style="float: left; width: 100%; padding-top=5px;">
            <asp:Repeater ID="repeaterValidResults" runat="server" Visible="False">
                <ItemTemplate>
                    <%#DataBinder.Eval(Container.DataItem, "FileName")%>
                    (<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>)<br />
                    <br />
                </ItemTemplate>
            </asp:Repeater>
        </div>

    </div>

   <div style="float:left; width:100%; padding-top:20px;">
       <asp:Button ID="Button1" runat="server" Text="Create" OnClick="insertRecord" CssClass="RadUploadSubmit"/>
   </div>



</asp:Content>